export default {
    // 发送请求前有fistView的true转为false loading的false转为true
    REQUESTING(state){
        state.firstView = false;
        state.loading = true;
    },
    REQ_SUCCESS(state,users){
        //   请求成功，更新为成功状态
        state.loading = false;
        state.users = users;
    },
    REQ_ERRORMSG(state,errorMsg){
        //   请求失败，更新失败状态
        state.loading = false;
        state.errorMsg = errorMsg;
    }
}